﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/swiper-3.4.2.min.css" />
		<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/swiper-3.4.2.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			* {
				padding: 0;
				margin: 0;
			}
			
			.lunbo {
				width: 540px;
				height: 300px;
				overflow: hidden;
				position: relative;
			}
			
			.all_tu {
				width: 540px;
				height: 300px;
				overflow: hidden;
			}
			
			.all_tu {
				width: 9999999px;
			}
			
			.lunbo_tu {
				width: 540px;
				height: 300px;
				float: left;
				overflow: hidden;
			}
			
			.lunbo_tu img {
				width: 100%;
			}
			
			.btn {
				font-size: 50px;
				color: rgba(255,255,255,.5);
				position: absolute;
				top: 50%;
				transform: translateY(-50%);
				z-index: 9999;
				cursor: pointer;
			}
			
			.btn:nth-child(3) {
				left: 10px;

			}
			
			.btn:nth-child(4) {
				right: 10px;
			}
		</style>
	</head>

	<body>
		<div class="lunbo swiper-container">
			<!--图片区-->
			<div class="all_tu swiper-wrapper">
				<div class="lunbo_tu swiper-slide">
					<img src="img/1big.jpg" alt="" />
				</div>
				<div class="lunbo_tu swiper-slide">
					<img src="img/2big.jpg" alt="" />
				</div>
				<div class="lunbo_tu swiper-slide">
					<img src="img/3big.jpg" alt="" />
				</div>
				<div class="lunbo_tu swiper-slide">
					<img src="img/3big.jpg" alt="" />
				</div>
				<div class="lunbo_tu swiper-slide">
					<img src="img/5big.jpg" alt="" />
				</div>
			</div>
			<!--图片区-->
			<!--小圆点控制器-->
			<div class="swiper-pagination"></div>
			<!--小圆点控制器-->
			<!--左右按钮-->
			<div class="btn swiper-button-prev">&lt;</div>
			<div class="btn swiper-button-next">&gt;</div>
			<!--左右按钮-->
			
		</div>
		<script type="text/javascript">
			$(function() {
				var lunbo = new Swiper(".lunbo", {
					autoplay: 2000,
					loop: true,
					pagination:'.swiper-pagination', //圆点
					prevButton: '.swiper-button-prev',
					nextButton: '.swiper-button-next',
				});
			})
		</script>
	</body>

</html>